package com.itheima.classloader;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/*
在模块下创建一个文件夹  resources
右键  mark as resource root  将resources 标记为配置文件文件夹
 */
public class Demo04 {

    public static void main(String[] args) throws IOException {

        InputStream is = ClassLoader.getSystemResourceAsStream("bean.properties");
        Properties properties = new Properties();
        properties.load(is);

        System.out.println(properties);
    }
}
